var __extends = (this && this.__extends) || function (d, b) {
    for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];
    function __() { this.constructor = d; }
    d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
define(["require", "exports", "core/BaseWidget.class"], function (require, exports, BaseWidget) {
    "use strict";
    var Loading = (function (_super) {
        __extends(Loading, _super);
        function Loading() {
            var _this = _super.apply(this, arguments) || this;
            _this.baseClass = "widget-loading";
            return _this;
        }
        Loading.prototype.startup = function () {
            (function (that) {
                var obj = $('.widget-loading');
                obj.find('.progress-bar-striped').data('count', '100');
                setTimeout(function () {
                    obj.hide(100, function () {
                        obj.remove();
                        that.ready();
                    });
                }, 1000);
            })(this);
        };
        return Loading;
    }(BaseWidget));
    return Loading;
});
